﻿namespace Vdc.Grid
{
    using System;
    using System.Collections;
    using System.Reflection;

    public class FilterOptionsCollection : CollectionBase
    {
        public void Add(FilterOption opt)
        {
            base.List.Add(opt);
        }

        public void Remove(int i)
        {
            base.List.RemoveAt(i);
        }

        public override string ToString()
        {
            string str = "";
            foreach (FilterOption option in base.List)
            {
                if (str != string.Empty)
                {
                    str = str + ",";
                }
                str = str + ((int) option.Type);
            }
            return str;
        }

        public FilterOption this[int index]
        {
            get
            {
                return (FilterOption) base.List[index];
            }
        }
    }
}

